package com.ccrfid.rmc6.pojo.huxi;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.vividsolutions.jts.geom.Polygon;

public class ConfigItem {
    private String name;
    @JsonIgnore
    private Integer count = 0;
    private Integer floor;
    private Polygon polygon;

    public synchronized void incCount() {
        count++;
    }

    public ConfigItem() {
        this.count = 0;
    }

    public ConfigItem(String name, Integer floor, Polygon polygon) {
        this.count = 0;
        this.name = name;
        this.floor = floor;
        this.polygon = polygon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getFloor() {
        return floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    public Polygon getPolygon() {
        return polygon;
    }

    public void setPolygon(Polygon polygon) {
        this.polygon = polygon;
    }
}
